﻿<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>照片墙</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
  <!-- Link Swiper's CSS -->
  <link rel="stylesheet" href="./swiper-bundle.min.css">

  <!-- Demo styles -->
  <style>
    html,
    body {
      position: relative;
      height: 100%;
    }

    body {
      background: linear-gradient(to bottom, rgba(58, 65, 78, 1), rgba(21, 25, 35, 1));
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: #000;
      margin: 0;
      padding: 0;
    }

    .swiper-container {
      width: 100%;
      height: 300px;
      margin-left: auto;
      margin-right: auto;
    }

    .swiper-slide {
      background-size: cover;
      background-position: center;
    }

    .gallery-top {
      height: 70%;
      width: 60%;
    }

    .gallery-thumbs {
      height: 30%;
      box-sizing: border-box;
      padding: 10px 0;
    }

    .gallery-thumbs .swiper-slide {
      width: 15%;
      height: 100%;
      
    }

    .gallery-thumbs .swiper-slide-thumb-active {
      opacity: 1;
    }

    .swiper-slide {
      background-size: contain;
      background-repeat: no-repeat;
      
    }

    .gallery-thumbs .swiper-slide{
        background-size: contain;
        background-position: center;
        border-radius: 50%;
        border: 1px solid #eee;
        box-shadow:  2px -2px 10px 0px #666;
        position: relative;
          
    }
    audio  {
      position: fixed;
      top: 0;
      left: 0;
      
    }
    
  </style>
</head>

<body>
  
  <audio  autoplay="autoplay" name="media" ><source src="./media/play.mp3" ></audio >
  <!-- Swiper -->
  <div class="swiper-container gallery-top">
    <div class="swiper-wrapper">
      <div class="swiper-slide" style="background-image: url(./images/0.jpg)"></div>
    </div>
    
  </div>
  <div class="swiper-container gallery-thumbs">
    <div class="swiper-wrapper">
        <div class="swiper-slide" style="background-image:url(./images/1.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/2.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/2-1.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/3.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/4.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/5.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/6.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/7.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/8.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/9.png )"></div>
      <div class="swiper-slide" style="background-image:url(./images/10.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/11.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/12.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/12.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/14.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/15.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/16.jpg)"></div>
      <div class="swiper-slide" style="background-image:url(./images/17.jpg)"></div>
    </div>
  </div>

  

  <!-- Swiper JS -->
  <script src="./swiper-bundle.min.js"></script>

  <!-- Initialize Swiper -->
  <script>
    var galleryThumbs = new Swiper('.gallery-thumbs', {
      spaceBetween: 10,
      slidesPerView: 5,
      freeMode: true,
      watchSlidesVisibility: true,
      watchSlidesProgress: true,
      autoplay: {
        delay: 3000
      },

    });
    var galleryTop = new Swiper('.gallery-top', {
      spaceBetween: 10,

    });
  </script>
  <script type="text/javascript">
    document.onclick=function(){
    document.querySelector("audio").play()
  }
  </script>

</body>

</html>
